﻿@if (Request.IsAuthenticated) {
    <span>你好，欢迎来姆拉拉!</span>@Html.ActionLink(User.Identity.Name, "changepassword", "UserAccount")<span>[</span>@Html.ActionLink("退出", "logoff", "UserAccount")<span>]</span>
}
else
{
    <span>你好，欢迎来姆拉拉!</span>@Html.ActionLink("登录", "login", "UserAccount", routeValues: null, htmlAttributes: new { id = "loginLink" })<span>[</span>@Html.ActionLink("注册", "register", "UserAccount", routeValues: null, htmlAttributes: new { id = "registerLink" })<span>]</span>
}

